package main

import (
	"fmt"
	"regexp"
)

func main(){
	grepstr:=`^([\d\.]+)\s(-)\s(-)\s\[(.*?)\s(.*?)\]\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s`

	str:=`192.167.69.143 - - [09/Jan/2020:23:45:05 +0800] "POST /api/uc/userinfo/submitphone HTTP/1.1" 200 0.042 114 "https://smartapp.baidu.com/FTIBOjSqVlzrC08FuciN8jd0TAX1WLkg/1.2.0.5/page-frame.html" "Mozilla/5.0 (Linux; Android 8.1.0; PBCM10 Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/11.18 swan/2.14.0 swan-baiduboxapp/11.18.0.12 baiduboxapp/11.18.0.12 (Baidu; P1 8.1.0)" - - 192.164.39.17 unix:/home/work/online/odp/php/var/php-cgi.sock bdzw.bjt.beijing.gov.cn "117.176.217.164" - - 27050333090000000000010923 1578584705.075`
	r:=regexp.MustCompile(grepstr)
 	ret :=r.FindStringSubmatch(str)
 	fmt.Print(ret[8])
}



